@import vertx.model.Fortune
@(fortunes: Array[Fortune])

@main("Fortunes") {
  <table>
    <tr>
      <th>id</th>
      <th>message</th>
    </tr>

    @fortunes.map { case Fortune(id, message) => {
    <tr>
      <td>@id</td>
      <td>@message</td>
    </tr>
      }}

  </table>
}